#include<stdio.h>
#define MAX 10
#define ElementType int 

struct Queue
{
    int queue[MAX];
    int len;
    int front;
    int rear;
};

void InitQueue(struct Queue *qp)
{
    qp->front=0;
    qp->rear=0;
    qp->len=0;
}

void Push(struct Queue *qp,ElementType element)
{
    if((qp->rear+1) % MAX==qp->front)
    {
        printf("the queue is full!\n");
        return;
    }
    qp->queue[qp->rear]=element;
    qp->rear++;
    qp->rear=qp->rear % MAX;
    qp->len++;
}

void Pop(struct Queue *qp)
{
    if(qp->front==qp->rear)
    {
        
    }
}